package com.bw.publish_module.publish;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.launcher.ARouter;
import com.bw.common.mvvm.viewmodel.BaseViewModel;
import com.bw.common.provider.LoginProvider;
import com.bw.network_sdk.entity.BaseEntity;

public class PublishViewModel extends BaseViewModel<PublishModel> {

    @Autowired
    LoginProvider loginProvider;

    @Override
    protected void initData() {
        ARouter.getInstance().inject(this);
        if (!loginProvider.isLogin()){
            ARouter.getInstance().build("/login/loginactivity").navigation();
            return;
        }
    }

    @Override
    protected void onRestle(BaseEntity entity) {

    }
}
